package cheme.ProcessModel.ProcessUnits.Streams.Tags;

import cheme.ProcessModel.PropertyAwareObject;

public class QuantityManager extends PropertyAwareObject
{
	OverallTagComponent overall = null;
	
	public QuantityManager(OverallTagComponent overall)
	{
		setOverallComponent(overall);
	}
	
	public void setOverallComponent(OverallTagComponent overall)
	{
		this.overall = overall;
		this.overall.addPropertyChangeListener(this);
	}
	
	public void addComponent(IGeneralTagComponent component)
	{
		component.addPropertyChangeListener(this);
	}
	
	public void removeComponent(IGeneralTagComponent component)
	{
		component.removePropertyChangeListener(this);
	}
	
//	@Override
//	public void propertyChange(PropertyChangeEvent evt)
//	{
//		if(QuantityField.P_PRE_TEXT.equals(evt.getPropertyName()))
//		{
//			
//		}
//	}
	
//	@Override
//	protected void handleTextChange(PropertyChangeEvent evt)
//	{
//		if(evt.getSource() == overall)
//		{
//			System.out.println("ppppppppp[pp");
//		}
//		else
//		{
//			System.out.println("fg ag ag asg ag rfgret");
//		}
//		
//		super.handleTextChange(evt);
//	}
}
